package cn.wolfcode.p2p.base.domain;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class BaseAuditDomain extends BaseDomain {

	public static final int STATE_NORMAL = 0;// 待审核
	public static final int STATE_PASS = 1;// 审核通过
	public static final int STATE_REJECT = 2;// 审核拒绝

	protected int state = STATE_NORMAL;
	protected String remark;
	protected LoginInfo applier;// 申请人
	protected Date applyTime;// 申请时间
	protected LoginInfo auditor;// 审核人
	protected Date auditTime;// 审核时间

	public String getStateDisplay() {
		switch (state) {
		case STATE_NORMAL:
			return "待审核";
		case STATE_PASS:
			return "审核通过";
		case STATE_REJECT:
			return "审核拒绝";
		default:
			return "未知";
		}
	}

}
